﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using E_Learning_V3.Models;

namespace E_Learning_V3.DAL
{
    public class ElearningContext : DbContext 
    {
        public DbSet<Emne> Emner { get; set; }
        public DbSet<Spg> Spg { get; set; }
        public DbSet<Svarmulighed> Svarmulighed { get; set; }
        public DbSet<Svar> Svar { get; set; }
        public DbSet<Afdeling> Afdeling { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        } 

    }
}